package com.example.feign.clients;


import com.example.feign.config.DefaultFeignConfig;
import com.example.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userserver",configuration = DefaultFeignConfig.class)
public interface UserClient {

    @GetMapping("/admin/user/{id}")
    User findUserById(@PathVariable("id") Long id);
}
